<?php
namespace Shared\Multimedia;

use Doctrine\ORM\Mapping as ORM;

/**
 * Description of ProductFiles
 *
 * @author nofear
 */

/**
 * @ORM\Entity
 * @ORM\Table(name="mm_site_object_gallery_item")
 */
class SiteObjectGalleryItem {
    
    /**
     * @ORM\Id
     * @ORM\Column(type="integer")
     * @ORM\GeneratedValue
     */
    private $id;
    
    /**
     * @ORM\ManyToOne(targetEntity="Shared\Main\SiteObject")
     * @ORM\JoinColumn(name="siteObjectId", referencedColumnName="id")
     */
    private $SiteObject;
    
    /**
     * @ORM\OneToOne(targetEntity="File")
     * @ORM\JoinColumn(name="`fileId`", referencedColumnName="id")
     */
    private $File;
    
    /**
     * @ORM\Column(type="boolean")
     */
    private $isMain;
    
    /**
     * @ORM\Column(type="boolean")
     */
    private $isActive;
    
    /**
     * @ORM\Column
     */
    private $title;
    
    /**
     * @ORM\Column(type="text")
     */
    private $description;
    
    public function getId() {
        return $this->id;
    }

    public function getSiteObject() {
        return $this->SiteObject;
    }

    public function getFile() {
        return $this->File;
    }

    public function getIsMain() {
        return $this->isMain;
    }

    public function getIsActive() {
        return $this->isActive;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function setSiteObject($SiteObject) {
        $this->SiteObject = $SiteObject;
    }

    public function setFile($File) {
        $this->File = $File;
    }

    public function setIsMain($isMain) {
        $this->isMain = $isMain;
    }

    public function setIsActive($isActive) {
        $this->isActive = $isActive;
    }
    
    public function getTitle() {
        return $this->title;
    }

    public function getDescription() {
        return $this->description;
    }

    public function setTitle($title) {
        $this->title = $title;
    }

    public function setDescription($description) {
        $this->description = $description;
    }
}
